<?php
class AdminModel extends Model{
	//自动验证
	protected $_validate = array(
		array('password_old','require','旧密码必须！'),
		array('password_new','require','新密码必须！'),
		array('password_confirm','require','确认密码必须！'),
		array('password_confirm','password_new','confirm','新密码和确认密码不一致！'),	
	);
	
	protected $fields = array(
		'sys_id',
		'sys_type',
		'sys_password'
	);
}
?>